package alipay.openplatform.edu.campus.jiuye.service.iservice.topic;

import alipay.openplatform.edu.campus.jiuye.model.po.TopicDetailInfoPO;
import alipay.openplatform.edu.campus.jiuye.model.vo.TopicDetailInfoVO;
import alipay.openplatform.edu.campus.jiuye.model.vo.TopicInfoVO;

public interface ITopicDetailInfoService {

    int deleteByPrimaryKey(Integer topicId);

    int insert(int topicId, String content);

    int insertSelective(TopicDetailInfoPO record);

    TopicDetailInfoPO selectByPrimaryKey(Integer topicId);

    int updateByTopicId(int topicId, String content);

    int updateByPrimaryKeyWithBLOBs(TopicDetailInfoPO record);

    /**
     * 前端查询详情
     *
     * @param userId
     * @param topicId
     * @return
     */
    TopicInfoVO selectDetailInfoByTopicID(String userId,String cityId,String schoolId, Integer topicId ,String schoolName,String cityName);



    /**
     * 后台查询详情
     *
     * @param topicId
     * @return
     */
    TopicInfoVO selectDetailInfoByTopicID(Integer topicId);

    void deleteDetailByTopicId(Integer topicId);

    /**
     *
     * @param userId
     * @param topicId
     * @param schoolId
     * @param cityId
     * @return
     */
    public TopicInfoVO selectDetailInfoByTopicIdAndSchoolId (String userId, Integer topicId ,String schoolId,String cityId);
}